package com.dragon.modules.yuegou.model.act;

import com.dragon.modules.yuegou.entity.act.GiftBagMemberRefEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 礼包发放记录表模型类
 * 
 * @author pbuilder generated
 * @date 2020-08-05 18:40:34
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class GiftBagMemberRef extends GiftBagMemberRefEntity {

	/**
	 * 构造一个空礼包发放记录表模型对象
	 */
	public GiftBagMemberRef(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个礼包发放记录表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public GiftBagMemberRef(GiftBagMemberRefEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个礼包发放记录表模型对象
	 * 
	 * @param other 其它对象
	 */
	public GiftBagMemberRef(GiftBagMemberRef other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public GiftBagMemberRef id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getGiftBagId() {
    	return giftBagId;
    }

    /**
	 * 设置
	 * 
	 * @param giftBagId 
	 * @return 当前对象
	 */
    public GiftBagMemberRef giftBagId(String giftBagId) {
    	this.giftBagId = giftBagId;
    	return this;
    }

	@Override
	public String getGiftBagName() {
    	return giftBagName;
    }

    /**
	 * 设置
	 * 
	 * @param giftBagName 
	 * @return 当前对象
	 */
    public GiftBagMemberRef giftBagName(String giftBagName) {
    	this.giftBagName = giftBagName;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置
	 * 
	 * @param memberId 
	 * @return 当前对象
	 */
    public GiftBagMemberRef memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置
	 * 
	 * @param busdId 
	 * @return 当前对象
	 */
    public GiftBagMemberRef busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public String getMobile() {
    	return mobile;
    }

    /**
	 * 设置手机号
	 * 
	 * @param mobile 手机号
	 * @return 当前对象
	 */
    public GiftBagMemberRef mobile(String mobile) {
    	this.mobile = mobile;
    	return this;
    }

	@Override
	public Integer getNum() {
    	return num;
    }

    /**
	 * 设置发放数量
	 * 
	 * @param num 发放数量
	 * @return 当前对象
	 */
    public GiftBagMemberRef num(Integer num) {
    	this.num = num;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public GiftBagMemberRef createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置发放人
	 * 
	 * @param createdBy 发放人
	 * @return 当前对象
	 */
    public GiftBagMemberRef createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public Boolean getWithdraw() {
    	return withdraw;
    }

    /**
	 * 设置是否撤回 0未撤回 1已撤回
	 * 
	 * @param withdraw 是否撤回 0未撤回 1已撤回
	 * @return 当前对象
	 */
    public GiftBagMemberRef withdraw(Boolean withdraw) {
    	this.withdraw = withdraw;
    	return this;
    }
}
